export const tableItem = [
  {
    prop: 'informationId',
    label: '编号',
    width: '60',
    // hide: true,
  },
  {
    prop: 'title',
    label: '标题',
    width: '300',
  },
  {
    prop: 'publishStatus',
    label: '发布状态',
    slotName: 'publishStatusSlot',
    width: '100',
  },
  {
    prop: 'hotspot',
    label: '热点资讯',
    slotName: 'hotspotSlot',
    width: '100',
  },
  {
    prop: 'status',
    label: '状态',
    width: '80',
    slotName: 'statusSlot',
  },
  {
    prop: 'createBy',
    label: '创建人',
    width: '170',
  },
  {
    prop: 'createTime',
    label: '创建时间',
    width: '170',
  },
  {
    prop: 'todo',
    label: '操作',
    width: '230',
    fixed: !window.isSmallScreen ? 'right' : false,
    slotName: 'todo',
    showOverflowTooltip: false,
  },
]
export default () => {
  return {
    tableItem,
    elTableConfig: {
      tooltipOptions: {
        popperClass: 'lmw_popper',
        effect: 'light',
      },
      rowKey: 'customerId',
    },
    showIndex: false,
    showChoose: true,
    pagination: true,
    // border: false,
  }
}
